#ifndef _MINISHELL_TINY_H_
#define _MINISHELL_TINY_H_
struct sh_detach_depth
{
	char **cmd;
	int len;
	int count;
	char *seps;
};
struct cmd_prompt {
	struct cmd_prompt	*next;
	int (*fun)(void *ptr, int argc, char **argv);
	char *name;
	char *help;
	int type;
#define CMDP_TYPE_STR  0
#define CMDP_TYPE_PASS 1
};

#define PROMPT_NODE(a,f,b,c,d) \
{ \
	(struct cmd_prompt	*)(a), \
	(int (*)(void *, int , char **))f, \
	(char*)(b), \
	(char*)(c), \
	(int)(d), \
}


void sh_analyse_ex (char *fmt, long len, struct sh_detach_depth *depth2, void *ptr);
void sh_whereboot(struct cmd_prompt *boot_new);
#endif